/**
 *
 * @type {{'201': {name: string, code: string, parentcode: string}}}
 * code:菜单叶子节点（页面） ,如201
 * name:按钮名称
 * code:元素（按钮）code，页面code自然序号
 * description: 备注 按钮功能
 */
let subElements = { 
  //楼盘管理
  101: [
    {
      name: '新建楼盘',
      code: '10101',
      description: '新建楼盘'
    },
    {
      name: '查看楼盘',
      code: '10102',
      description: '查看楼盘'
    },
    {
      name: '编辑楼盘',
      code: '10103',
      description: '编辑楼盘'
    },
  ],
  //户型管理
  102: [
    {
      name: '新建楼栋',
      code: '10201',
      description: '新建楼栋'
    },
    {
      name: '查看楼栋',
      code: '10202',
      description: '查看楼栋'
    },
    {
      name: '编辑楼栋',
      code: '10203',
      description: '编辑楼栋'
    },
    {
      name: '删除楼栋',
      code: '10204',
      description: '删除楼栋'
    },
  ],
  //户型管理
  103: [
    {
      name: '新建户型',
      code: '10301',
      description: '新建户型'
    },
    {
      name: '查看户型',
      code: '10302',
      description: '查看户型'
    },
    {
      name: '编辑户型',
      code: '10303',
      description: '编辑户型'
    },
    {
      name: '删除户型',
      code: '10304',
      description: '删除户型'
    },
  ],
  //标签管理
  104: [
    {
      name: '新建标签',
      code: '10401',
      description: '新建标签'
    },
    {
      name: '编辑',
      code: '10402',
      description: '编辑'
    },
    {
      name: '删除',
      code: '10403',
      description: '删除'
    }
  ],
  //资讯管理
  201: [
    {
      name: '新增资讯',
      code: '20101',
      description: '新增资讯'
    },
    {
      name: '查看资讯',
      code: '20102',
      description: '查看资讯'
    },
    {
      name: '编辑资讯',
      code: '20103',
      description: '编辑资讯'
    },
    {
      name: '删除资讯',
      code: '20104',
      description: '删除资讯'
    }
  ],
  //活动报名
  202: [
    {
      name: '新增活动',
      code: '20201',
      description: '新增资讯'
    },
    {
      name: '查看活动',
      code: '20202',
      description: '查看资讯'
    },
    {
      name: '编辑活动',
      code: '20203',
      description: '编辑资讯'
    },
    {
      name: '删除活动',
      code: '20204',
      description: '删除资讯'
    }
  ],
  //优惠券管理
  203: [
    {
      name: '导入优惠券',
      code: '20301',
      description: '导入优惠券'
    },
    {
      name: '查看详细',
      code: '20302',
      description: '查看详细'
    },
    {
      name: '编辑优惠券',
      code: '20303',
      description: '编辑优惠券'
    },
    {
      name: '查看报表',
      code: '20304',
      description: '查看报表'
    },
    {
      name: '删除优惠券',
      code: '20305',
      description: '删除优惠券'
    },
    {
      name: '导出优惠券',
      code: '20306',
      description: '导出优惠券'
    },
    {
      name: '新增优惠券',
      code: '20307',
      description: '新增优惠券'
    }
  ],
  //首页横幅管理
  301: [

  ],
  //广告弹窗
  302: [

  ],
  //轮播图管理
  303: [
    {
      name: '新增广告图',
      code: '30301',
      description: '新增广告图'
    },
    {
      name: '更改跳转',
      code: '30302',
      description: '更改跳转'
    },
    {
      name: '删除',
      code: '30303',
      description: '删除'
    }
  ],
  //强推设置
  304: [
    {
      name: '推荐楼盘新增',
      code: '30401',
      description: '推荐楼盘新增'
    },
    {
      name: '推荐楼盘删除',
      code: '30402',
      description: '推荐楼盘删除'
    },
    {
      name: '推荐活动新增',
      code: '30403',
      description: '推荐活动新增'
    },
    {
      name: '推荐活动删除',
      code: '30404',
      description: '推荐活动新删除'
    },
    {
      name: '推荐资讯新增',
      code: '30405',
      description: '推荐资讯新增'
    },
    {
      name: '推荐资讯删除',
      code: '30406',
      description: '推荐资讯删除'
    }
  ],
  //渠道合作管理
  401: [
    {
      name: '导出合作列表',
      code: '40101',
      description: '导出合作列表'
    },
    {
      name: '新增合作',
      code: '40102',
      description: '新增合作'
    },
    {
      name: '查看客户',
      code: '40103',
      description: '查看客户'
    },
    {
      name: '修改中介信息',
      code: '40104',
      description: '修改中介信息'
    },
  ],
  //查看合作申请
  402: [
    {
      name: '导出合作申请',
      code: '40201',
      description: '导出合作申请'
    },
  ],
  //业务数据查询
  501: [
    

  ],
  //经纪人查询
  502: [
    {
      name: '查看经纪人',
      code: '50201',
      description: '查看经纪人'
    },
    {
      name: '查看导出经纪人',
      code: '50202',
      description: '查看导出经纪人'
    },
    {
      name: '导出经纪人',
      code: '50203',
      description: '导出经纪人列表'
    },
  ],
  //预约看房列表
  503: [
      {
        name: '查看',
        code: '50301',
        description: '查看'
      }
  ],
  //推介情况查询
  504: [
    {
      name: '导出客户',
      code: '50401',
      description: '导出客户'
    },
    {
      name: '搜索客户',
      code: '50402',
      description: '搜索客户'
    },
  ],
  //意见反馈管理
  507: [
    {
      name: '查看详情',
      code: '50701',
      description: '查看详情'
    }
  ],
//用户基本资料管理管理
  509:[
    {
      name:'搜索用户',
      code:'50901',
      description:'搜索用户'
    },
  ],
  //报表管理601-606
  601: [],
  //佣金管理701-703
  //
  801: [
    {
      name: '新增顾问',
      code: '80101',
      description: '新增顾问'
    },
    {
      name: '编辑顾问',
      code: '80102',
      description: '编辑顾问'
    },
    {
      name: '查看顾问',
      code: '80103',
      description: '查看顾问'
    },
    {
      name: '删除顾问',
      code: '80104',
      description: '删除顾问'
    },
  ],
  //置业顾问评价管理
  802: [
    {
      name: '导出评价',
      code: '80201',
      description: '导出评价'
    },
    {
      name: '批量删除',
      code: '80202',
      description: '批量删除'
    },
    {
      name: '删除评价',
      code: '80203',
      description: '删除评价'
    },
  ],
  //秒杀管理
  //秒杀活动列表
  901: [
    {
      name: '新增',
      code: '90101',
      description: '新增'
    },
    {
      name: '详情',
      code: '90102',
      description: '详情'
    },
    {
      name: '修改',
      code: '90103',
      description: '修改'
    },
    {
      name: '删除',
      code: '90104',
      description: '删除'
    },
    {
      name: '查看报名情况',
      code: '90105',
      description: '查看报名情况'
    }
  ],
  //秒杀活动商品列表
  902: [
    {
      name: '新增',
      code: '90201',
      description: '新增'
    },
    {
      name: '导入',
      code: '90202',
      description: '导入'
    },
    {
      name: '详情',
      code: '90203',
      description: '详情'
    },
    {
      name: '删除',
      code: '90204',
      description: '删除'
    },
    
  ],
  //秒杀订单列表
  903: [
    {
      name: '详情',
      code: '90301',
      description: '详情'
    }
  ],
  //竞拍管理
  //竞拍活动列表
  904: [
    {
      name: '新增',
      code: '90401',
      description: '新增'
    },
    {
      name: '详情',
      code: '90402',
      description: '详情'
    },
    {
      name: '修改',
      code: '90403',
      description: '修改'
    },
    {
      name: '删除',
      code: '90404',
      description: '删除'
    },
    {
      name: '查看报名情况',
      code: '90405',
      description: '查看报名情况'
    }
  ],
  //竞拍活动商品列表
  905: [
    {
      name: '新增',
      code: '90501',
      description: '新增'
    },
    {
      name: '导入',
      code: '90502',
      description: '导入'
    },
    {
      name: '详情',
      code: '90503',
      description: '详情'
    },
    {
      name: '失效',
      code: '90504',
      description: '失效'
    },
    {
      name: '删除',
      code: '90505',
      description: '删除'
    }
  ],
  //竞拍订单列表
  906: [
    {
      name: '详情',
      code: '90601',
      description: '详情'
    }
  ],
  //用户角色管理
  1001: [
    {
      name: '新增',
      code: '100101',
      description: '新增'
    },
    {
      name: '编辑',
      code: '100102',
      description: '编辑'
    },
    {
      name: '禁用',
      code: '100103',
      description: '禁用'
    },
    {
      name: '删除',
      code: '100104',
      description: '删除'
    }
  ],
  //角色管理
  1002: [
    {
      name: '新增',
      code: '100201',
      description: '新增'
    },
    {
      name: '编辑',
      code: '100202',
      description: '编辑'
    },
    {
      name: '禁用',
      code: '100203',
      description: '禁用'
    },
    {
      name: '删除',
      code: '100204',
      description: '删除'
    }
  ],
  //二维码管理
  1202: [
    {
      name: '查看详情',
      code: '120201',
      description: '查看详情'
    },
    {
      name: '删除',
      code: '120202',
      description: '删除'
    },
    {
      name: '下载二维码',
      code: '120203',
      description: '下载二维码'
    },
    {
      name: '新增',
      code: '120204',
      description: '新增'
    },
  ],
  //商品管理
  1301: [
    {
      name: '删除',
      code: '130101',
      description: '删除'
    },
    {
      name: '编辑',
      code: '130102',
      description: '编辑'
    },
    {
      name: '查看',
      code: '130103',
      description: '查看'
    },
   
    {
      name: '新增',
      code: '130104',
      description: '新增'
    },
    {
      name: '导出',
      code: '130105',
      description: '导出'
    },
  ],
  //账户列表
  1401: [
    {
      name: '查看',
      code: '140101',
      description: '查看'
    },
    {
      name: '编辑',
      code: '140102',
      description: '编辑'
    },
    {
      name: '删除',
      code: '140103',
      description: '删除'
    },
   
    {
      name: '导出',
      code: '140104',
      description: '导出'
    },
    {
      name: '导入',
      code: '140105',
      description: '导入'
    },
    {
      name: '新建',
      code: '140106',
      description: '新建'
    },
  ]
}
module.exports = subElements;
